/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Model.DAO;

import Model.Bean.PagoAgua;
import java.util.List;

/**
 *
 * @author sixviv
 */
public class PagoAguaDAO extends AbstracDAO<PagoAgua>{
    
    public PagoAgua getByRendamiento(int id){
        List<PagoAgua>pagosAgua = buscar("idRendamiento="+id, PagoAgua.class);
        if(!pagosAgua.isEmpty()){
            return pagosAgua.get(0);
        }else{
            return null;
        }
        
    }


}
